home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 January / macpower199701.bin / AMUG / Programming_10 / WASTE 1.3a1.sit / WASTE 1.3a1 Distribution / WASTE 1.3a1 / WESharedLibrary.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-23  |  637 b   |  39 lines  |  [TEXT/CWIE]

  1. /*
  2.  *    WESharedLibrary.c
  3.  *
  4.  *    WASTE PROJECT
  5.  *  CFM Shared Library initialization & Termination code
  6.  *
  7.  *  Copyright (c) 1993-1996 Marco Piovanelli
  8.  *    All Rights Reserved
  9.  *
  10.  *  C port by Dan Crevier
  11.  *
  12.  */
  13.  
  14.  
  15. #include "WASTEIntf.h"
  16.  
  17. #if !GENERATINGCFM
  18. #error "This code is for CFM shared libraries only"
  19. #endif
  20.  
  21. //    globals
  22.  
  23. QDGlobals qd;        //    define the Quickdraw globals here!
  24.  
  25. pascal OSErr _WECFMInitialize(const CFragInitBlock *theInitBlock)
  26. {
  27. #pragma unused(theInitBlock)
  28.  
  29.     //    initialize the Quickdraw globals
  30.     InitGraf(&qd.thePort);
  31.     
  32.     //    make the Code Fragment Manager happy
  33.     return noErr;
  34. }
  35.  
  36. pascal void _WECFMTerminate(void)
  37. {
  38. }
  39.